/**
 * @author maulin
 */
dojo.provide("medryx.widgets.TeamList");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("medryx.widgets._TeamList.TeamListView");
dojo.require("medryx.widgets._TeamList.TeamListController");



/**
 * A TeamList widget that builds a table of teams, by category
 * You can pass in a custom filter or sort order.
 * You can also pass in an alternate controllerClass,
 * the default is used if empty.
 **/
dojo.declare("medryx.widgets.TeamList", [dijit._Widget, dijit._Templated, medryx.widgets._TeamList.TeamListView], {
	controllerClass:medryx.widgets._TeamList.TeamListController,
	
	postCreate:function() {
		this.controller = new this.controllerClass(this);
		this.inherited(arguments);
	},
	
	loadTeams:function() {
        return this.controller.loadTeams(arguments[0]);
    }
	
	
});
